package com.zhiliao.factory.abstracts.demo1.bean;

import com.zhiliao.factory.abstracts.tradition.Engine;
import com.zhiliao.factory.abstracts.tradition.Underpan;
import com.zhiliao.factory.abstracts.tradition.Wheel;

/**
 * 作者： zhi-liao
 * 类的作用:
 * 类的创建时间： 2021/5/23 12:50
 */
public class CarProduct implements IProduct {
    private Engine engine;
    private Underpan underpan;
    private Wheel wheel;

    public CarProduct(Engine engine, Underpan underpan, Wheel wheel) {
        this.engine = engine;
        this.underpan = underpan;
        this.wheel = wheel;
    }
    @Override
    public void productMethod() {
        System.out.println("CarProduct");
    }
}
